package com.thingsgrid.notice.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;
/**
 * NoticeEntiy
 * @author MQ
 */
@Data
@Document
public class 	NoticeEntiy extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "0是发全部，1是指定用户")
    @Field("send_type")
    @JsonProperty("send_type")
    private String sendType;
    @ApiModelProperty(value = "消息创建者")
    @Field("creator_name")
    @JsonProperty("creator_name")
    private String creatorName;
    @ApiModelProperty(value = "消息类型，0: 系统消息,1: 报警消息,2: 服务消息")
    @Field("message_type")
    @JsonProperty("message_type")
    private String messageType;

    public NoticeEntiy(){

    }
    public NoticeEntiy(String title,String content,String sendType,String creatorName,String messageType){
        this.title = title;
        this.content = content;
        this.sendType = sendType;
        this.creatorName = creatorName;
        this.messageType = messageType;
    }

}
